package com.cwits.wifi.ui.dialog;

import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.cwits.wifi.R;
import com.cwits.wifi.base.BaseDialogFragment;

/**
 * Created by ZhangHua on 16-03-01.
 */
public class ModifyWifiDialog extends BaseDialogFragment {
    private int mType;

    public static ModifyWifiDialog newInstance(int num) {
        ModifyWifiDialog f = new ModifyWifiDialog();

        Bundle args = new Bundle();
        args.putInt("type", num);
        f.setArguments(args);

        return f;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mType = getArguments().getInt("type");
        setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.modify_wifi_dialog, container, false);

        return v;
    }
}
